//
//  ViewController.m
//  时间戳转化为时间
//
//  Created by chenleping on 2018/6/1.
//  Copyright © 2018年 IAPTest. All rights reserved.
//

#import "ViewController.h"
#import "NSObject+timestamp.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
   //  @"YYYY-MM-dd HH:mm:ss"
    NSString * timestamp = [self getTimeFromTimestamp:1527899400 withDateFormat:@"YYYY-MM-dd HH"];
    
    NSLog(@"timestamp:----%@", timestamp);
}



@end
